projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
602ad1a
)
(show-paren-function): Allow new paren-class info.
author
Stefan Monnier
<monnier@iro.umontreal.ca>
Sun, 20 Nov 2005 18:07:19 +0000
(18:07 +0000)
committer
Stefan Monnier
<monnier@iro.umontreal.ca>
Sun, 20 Nov 2005 18:07:19 +0000
(18:07 +0000)
lisp/paren.el
patch
|
blob
|
history
diff --git
a/lisp/paren.el
b/lisp/paren.el
index a1cc12712f7cb4ae9faa6b067f6fc8ec922d0319..ece3ed3c6060f5b8ca54dc49580c3d69d853d6c3 100644
(file)
--- a/
lisp/paren.el
+++ b/
lisp/paren.el
@@
-181,7
+181,12
@@
in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time."
(cdr (syntax-after beg)))
(eq (char-after beg)
;; This can give nil.
- (cdr (syntax-after (1- end)))))))))))))
+ (cdr (syntax-after (1- end))))
+ ;; The cdr might hold a new paren-class
+ ;; info rather than a matching-char info,
+ ;; in which case the two CDRs should match.
+ (eq (cdr (syntax-after (1- end)))
+ (cdr (syntax-after beg))))))))))))
;;
;; Highlight the other end of the sexp, or unhighlight if none.
(if (not pos)